//
//  RGMessageCommentVC.m
//  RedGrass
//
//  Created by wuyine on 2019/1/28.
//  Copyright © 2019年 hongcaosp. All rights reserved.
//

#import "RGMessageCommentVC.h"
#import "RGMessageCommentCell.h"
@interface RGMessageCommentVC ()

@end

@implementation RGMessageCommentVC

- (void)viewDidLoad {
    [super viewDidLoad];
    self.customNavBar.title = @"评论";
    self.emptyTitle = @"还没有人评论哦";
    self.emptyDescription = @"赶快去上传作品吧~";
    [self.tableView registerClass:[RGMessageCommentCell class] forCellReuseIdentifier:@"MessageCommentCell"];

}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    RGMessageCommentCell *cell= [tableView dequeueReusableCellWithIdentifier:@"MessageCommentCell"];
    RGMessageContactModel *model = [self.dataList objectAtIndex:indexPath.row];
    model.messageType = self.type;
    
    cell.model = model;
    return cell;
}
/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
